<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Paradox 函数</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="paradox.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.px-close.html">px_close</a></div>
 <div class="up"><a href="book.paradox.html">Paradox</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ref.paradox" class="reference">
 <h1 class="title">Paradox 函数</h1>

 <div class="partintro">

  
  <div class="section" id="paradox.oo-api">
   <h2 class="title">Object oriented API</h2>
   <p class="para">
    The paradox extension provides also an object oriented API. It consists of
    only one class called paradox_db. Its methods only differ from the
    functions in its name and of course the missing first parameter. The
    following table will list all methods and its equivalent functions.

    <table id="paradox.table-class-methods" class="doctable table">
     <caption><strong>Methods of class paradox_db</strong></caption>
     
      <thead>
       <tr>
        <th>Name of method</th>
        <th>Equivalent function</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td>Constructor</td>
        <td><span class="function"><a href="function.px-new.html" class="function">px_new()</a></span></td>
       </tr>

       <tr>
        <td>Destructor</td>
        <td><span class="function"><a href="function.px-delete.html" class="function">px_delete()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>open_fp()</strong></span></td>
        <td><span class="function"><a href="function.px-open-fp.html" class="function">px_open_fp()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>create_fp()</strong></span></td>
        <td><span class="function"><a href="function.px-create-fp.html" class="function">px_create_fp()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>close()</strong></span></td>
        <td><span class="function"><a href="function.px-close.html" class="function">px_close()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>numrecords()</strong></span></td>
        <td><span class="function"><a href="function.px-numrecords.html" class="function">px_numrecords()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>numfields()</strong></span></td>
        <td><span class="function"><a href="function.px-numfields.html" class="function">px_numfields()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>get_record()</strong></span></td>
        <td><span class="function"><a href="function.px-get-record.html" class="function">px_get_record()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>put_record()</strong></span></td>
        <td><span class="function"><a href="function.px-put-record.html" class="function">px_put_record()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>retrieve_record()</strong></span></td>
        <td><span class="function"><a href="function.px-retrieve-record.html" class="function">px_retrieve_record()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>delete_record()</strong></span></td>
        <td><span class="function"><a href="function.px-delete-record.html" class="function">px_delete_record()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>insert_record()</strong></span></td>
        <td><span class="function"><a href="function.px-insert-record.html" class="function">px_insert_record()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>update_record()</strong></span></td>
        <td><span class="function"><a href="function.px-update-record.html" class="function">px_update_record()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>get_field()</strong></span></td>
        <td><span class="function"><a href="function.px-get-field.html" class="function">px_get_field()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>get_schema()</strong></span></td>
        <td><span class="function"><a href="function.px-get-schema.html" class="function">px_get_schema()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>get_info()</strong></span></td>
        <td><span class="function"><a href="function.px-get-info.html" class="function">px_get_info()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>set_parameter()</strong></span></td>
        <td><span class="function"><a href="function.px-set-parameter.html" class="function">px_set_parameter()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>get_parameter()</strong></span></td>
        <td><span class="function"><a href="function.px-get-parameter.html" class="function">px_get_parameter()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>set_value()</strong></span></td>
        <td><span class="function"><a href="function.px-set-value.html" class="function">px_set_value()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>get_value()</strong></span></td>
        <td><span class="function"><a href="function.px-get-value.html" class="function">px_get_value()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>get_info()</strong></span></td>
        <td><span class="function"><a href="function.px-get-info.html" class="function">px_get_info()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>set_targetencoding()</strong></span></td>
        <td><span class="function"><a href="function.px-set-targetencoding.html" class="function">px_set_targetencoding()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>set_tablename()</strong></span></td>
        <td><span class="function"><a href="function.px-set-tablename.html" class="function">px_set_tablename()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>set_blob_file()</strong></span></td>
        <td><span class="function"><a href="function.px-set-blob-file.html" class="function">px_set_blob_file()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>date2string()</strong></span></td>
        <td><span class="function"><a href="function.px-date2string.html" class="function">px_date2string()</a></span></td>
       </tr>

       <tr>
        <td><span class="function"><strong>timestamp2string()</strong></span></td>
        <td><span class="function"><a href="function.px-timestamp2string.html" class="function">px_timestamp2string()</a></span></td>
       </tr>

      </tbody>
     
    </table>

   </p>
  </div>
 </div>

 







































































































































































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.px-close.html">px_close</a> — Closes a paradox database</li><li><a href="function.px-create-fp.html">px_create_fp</a> — Create a new paradox database</li><li><a href="function.px-date2string.html">px_date2string</a> — Converts a date into a string.</li><li><a href="function.px-delete-record.html">px_delete_record</a> — Deletes record from paradox database</li><li><a href="function.px-delete.html">px_delete</a> — Deletes resource of paradox database</li><li><a href="function.px-get-field.html">px_get_field</a> — Returns the specification of a single field</li><li><a href="function.px-get-info.html">px_get_info</a> — Return lots of information about a paradox file</li><li><a href="function.px-get-parameter.html">px_get_parameter</a> — Gets a parameter</li><li><a href="function.px-get-record.html">px_get_record</a> — Returns record of paradox database</li><li><a href="function.px-get-schema.html">px_get_schema</a> — Returns the database schema</li><li><a href="function.px-get-value.html">px_get_value</a> — Gets a value</li><li><a href="function.px-insert-record.html">px_insert_record</a> — Inserts record into paradox database</li><li><a href="function.px-new.html">px_new</a> — Create a new paradox object</li><li><a href="function.px-numfields.html">px_numfields</a> — Returns number of fields in a database</li><li><a href="function.px-numrecords.html">px_numrecords</a> — Returns number of records in a database</li><li><a href="function.px-open-fp.html">px_open_fp</a> — Open paradox database</li><li><a href="function.px-put-record.html">px_put_record</a> — Stores record into paradox database</li><li><a href="function.px-retrieve-record.html">px_retrieve_record</a> — Returns record of paradox database</li><li><a href="function.px-set-blob-file.html">px_set_blob_file</a> — Sets the file where blobs are read from</li><li><a href="function.px-set-parameter.html">px_set_parameter</a> — Sets a parameter</li><li><a href="function.px-set-tablename.html">px_set_tablename</a> — Sets the name of a table (deprecated)</li><li><a href="function.px-set-targetencoding.html">px_set_targetencoding</a> — Sets the encoding for character fields (deprecated)</li><li><a href="function.px-set-value.html">px_set_value</a> — Sets a value</li><li><a href="function.px-timestamp2string.html">px_timestamp2string</a> — Converts the timestamp into a string.</li><li><a href="function.px-update-record.html">px_update_record</a> — Updates record in paradox database</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="paradox.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.px-close.html">px_close</a></div>
 <div class="up"><a href="book.paradox.html">Paradox</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
